package com.hebxy.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hebxy.ssm.dao.ConsumptionMapper;
import com.hebxy.ssm.entity.Consumption_record;
import com.hebxy.ssm.service.ConsumptionService;
@Service
public class ConsumptionServiceImpl implements ConsumptionService{
	
	@Autowired
	private ConsumptionMapper consumptionMapper;

	@Override
	public List<Consumption_record> findConsumptionById(Integer id) {
		// TODO Auto-generated method stub
		return consumptionMapper.getConsumptionById(id);
	}

	@Override
	public void addConsumptionRecord(Consumption_record cons) {
		consumptionMapper.addConsumptionRecord(cons);
	}
	
}
